import request from '@/utils/request'

export const getdetail = (goodsId) => {
  return request.get('/goods/detail', {
    params: {
      goodsId
    }
  })
}
// 获取商品评论
export const comment = (goodsId, limit) => {
  return request.get('/comment/listRows', {
    params: { goodsId, limit }
  })
}
// 获取商品评论列表
export const comentt = (goodsId, scoreType, page) => {
  return request.get('/comment/list', {
    params: {
      goodsId,
      scoreType,
      page
    }
  })
}
export const getcartt = () => {
  return request.get('/cart/total')
}
